/*
 * @Author: 周鹏飞
 * @Date: 2021-06-28 18:08:18
 * @LastEditors: 周鹏飞
 * @LastEditTime: 2021-07-01 10:15:43
 * @Description: file content
 */
import request from '@/utils/request'

// 查询大屏信息管理列表
export function listLedInfoManage(query) {
  return request({
    url: '/led/ledInfoManage/list',
    method: 'get',
    params: query
  })
}

// 查询大屏信息管理详细
export function getLedInfoManage(id) {
  return request({
    url: '/led/ledInfoManage/' + id,
    method: 'get'
  })
}

// 新增大屏信息管理
export function addLedInfoManage(data) {
  return request({
    url: '/led/ledInfoManage',
    method: 'post',
    data: data
  })
}

// 修改大屏信息管理
export function updateLedInfoManage(data) {
  return request({
    url: '/led/ledInfoManage',
    method: 'put',
    data: data
  })
}

// 删除大屏信息管理
export function delLedInfoManage(id) {
  return request({
    url: '/led/ledInfoManage/' + id,
    method: 'delete'
  })
}
// 获取大屏实时内容
export function getRealContent(id) {
  return request({
    url: '/led/ledInfoManageDetail/getLedDetail/'+id,
    method: 'get'
  })
}
// 控制大屏的开关
export function updateLine(data) {
  return request({
    url: '/led/led/updateLine',
    method: 'post',
    data: data
  })
}
// 测试大屏是否连接
export function testConnect(id) {
  return request({
    url: '/led/led/ping/'+id,
    method: 'get'
  })
}